import request from '../utils/request';

export function get(url, data) {
    return request({
        url: url,
        method: 'get',
        params: data
    })
}
  
export function post(url, data) {
    return request({
        url: url,
        method: 'post',
        headers: {
            'Content-Type': 'application/json; charset=utf-8'
        },
        data: data
    })
}

export function del(url, data) {
    return request({
        url: url,
        method: 'delete',
        headers: {
            'Content-Type': 'application/json; charset=utf-8'
        },
        data: data
    })
}

export function put(url, data) {
    return request({
        url: url,
        method: 'put',
        headers: {
            'Content-Type': 'application/json; charset=utf-8'
        },
        data: data
    })
}